﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ruandao.HostServer.Sql
{
    using Ruandao.Misc;
    using Ruandao.HostServer;
    using Ruandao.HostServer.SqlEntityAccess;

    public class SqlDatabase : Database
    {
        internal Database SetFromEntity(DatabaseEntity entity)
        {
            TypeUtil.MapProperty(entity, this,
                "DatabaseId",
                "DbType",
                "Instance",
                "Connection",
                "AccessType");
            return this;
        }
    }
}
